<div class="x-git" ng-init="vm.init();refresh(vm.callback);">
  <script id="opt-toolbar" type="text/ng-template">
    <div>
      <div class="pull-right" style="margin-left:4px" go-back></div>
      <div class="pull-right x-git-search">
        <form ng-submit="vm.search()" novalidate>
          <div class="input-group">
            <input type="text" class="form-control" ng-model="vm.query" placeholder="文件夹/文件名" autofocus>
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
            </span>
          </div>
        </form>
      </div>
    </div>
  </script>
  <div class="row x-view-body">
    <div class="col-md-12">
      <table class="table table-bordered table-responsive x-git-table">
       <thead>
         <tr>
           <th width="25%">SHA</th>
           <th width="25%">MESSAGE</th>
           <th width="20%">DIFF FILES</th>
           <th width="15%">DATE</th>
           <th width="15%">COMMITTER</th>
         </tr>
       </thead>
       <tbody>
         <tr ng-repeat="commit in vm.commits">
           <td>{{commit.sha}}</td>
           <td title="{{commit.message}}">{{commit.message}}</td>
           <td>
             <div ng-repeat="file in commit.files">
               <span ng-bind-html="file.status | xStatus"></span>
               <a href="javascript:void(0)" ng-bind-html="file.path | xKeyword:vm.query"
                   ng-click="vm.show(commit, file)"></a>
             </div>
           </td>
           <td align="center">{{commit.date | xDatetime}}</td>
           <td>{{commit.email}}</td>
         </tr>
       </tbody>
      </table>
      <button class="btn btn-default btn-block" ng-click="vm.load()" ng-if="!vm.ending"
          style="margin-bottom:20px">加载更多...</button>
    </div>
  </div>
</div>
